import pinia from '@/store';
import useUserStore from '@/store/modules/user'
const userstore=useUserStore(pinia)
export const isHasButton=(app:any)=>{
    app.directive('isButton',{
        mounted(el:any,options:any){
            console.log(userstore.buttons.includes(options.value));
            
            if(!userstore.buttons.includes(options.value)){
                el.parentNode.removeChild(el)
                
            }
        }
    })
    
}